/*
 * Copyright (c) 2012,东方口岸科技有限公司
 * All rights reserved.
 * 文件名称：SendMessageService.java
 * 摘    要：
 * 版本：1.0
 * 作    者：fengzhiyong
 */
package com.cneport.transfer.router.support.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.cneport.transfer.router.model.SendMessage;
import com.cneport.transfer.router.support.mapper.SendMessageMapper;

@Component
public class SendMessageService {
    /**
     *@CreateDate:2012-7-13
     *@Description:
     */
    @Autowired
    private SendMessageMapper sendMessageMapper;
    
    public int insertSendMessage(List<SendMessage> sendMessageList){
        int insertNum = 0;
        for (SendMessage sendMessage : sendMessageList) {
            insertNum = insertNum + sendMessageMapper.insertSendMessage(sendMessage);
        }
        return insertNum;
    }
    public List<SendMessage> selectSendMessage(){
        return sendMessageMapper.selectSendMessage();
    } 
}
